﻿#region Summary

// 
// Owner : JackieHan 
// 
// Solution : Erp 
// 
// Project : Jackie.Utility.BvConversion
// 
// File : ClassStringValueConversion.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 自定义类型对象  string 转换
// 
// History : 
//			2012-05-15 16:38:03	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;

#endregion

namespace Jackie.Utility.BvConversion.DefalutValueConversion
{
    ///<summary>
    ///自定义类型对象  string 转换
    ///</summary>
    public class ClassStringValueConversion : IValueConversion
    {
        #region Implementation of IValueConversion

        public object GetViewValue(object businessValue)
        {
            if (businessValue == null) return string.Empty;
            return businessValue.ToString();
        }

        public object GetBusinessValue(object viewValue)
        {
            return null;
        }

        #endregion
    }
}